﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HanGu.Entity;
using System.ServiceModel;

namespace HanGu.Services.Interface
{
    public interface IRoles
    {

        [OperationContract]
        List<Role> GetAll();
        [OperationContract]
        List<Role> GetAll(UniversallySearchParam searchparma);
        [OperationContract]
        List<VRolePurview> GetVRolePurviewByID(int id);
        [OperationContract]
        Role GetByID(int id);
        [OperationContract]
        bool Add(Role model);
        [OperationContract]
        bool Update(VRolePurview model);
        [OperationContract]
        bool Delete(int id);
    }
}
